package com.basic.auth.service;

import com.basic.auth.dao.model.AuthRole;
import com.basic.auth.domain.AuthRoleBo;

import java.util.List;

/**
 * 权限角色
 *
 * @author 
 * @version 1.0
 * @Date  9:45
 */
public interface AuthRoleService {

    /**
     * 根据条件查询数据集合
     * @param
     * @param authRoleBo
     * @return java.util.List<com.nxin.middle.basic.auth.dao.model.AuthRole>
     * @author 
     * @date 17:23 
     **/
    public List<AuthRole> selListByParam(AuthRoleBo authRoleBo);

    /**
     * 根据主键查询
     *
     * @param
     * @param roleCode
     * @return com.nxin.middle.basic.auth.dao.model.AuthRole
     * @author 
     * @date 11:19 
     **/
    public AuthRole selAuthRoleByCode(String roleCode);

    /**
     * 根据主键修改权限角色信息
     *
     * @param
     * @param authRole
     * @return int
     * @author 
     * @date 11:12 
     **/
    public int updAuthRoleByCode(AuthRole authRole);

    /**
     * 根据主键逻辑删除权限角色信息
     *
     * @param roleCode
     * @return int
     * @author 
     * @date 10:11 
     **/
    public int delAuthRoleByCode(String roleCode);

    /**
     * 添加权限角色
     *
     * @param
     * @param authRole
     * @return void
     * @author 
     * @date 9:58 
     **/
     String addAuthRole(AuthRole authRole);

    /**
     * 根据systemId查询角色列表
     *
     * @param
     * @param authRoleBo
     * @return void
     * @author 
     * @date 9:58 
     **/
    public List<AuthRoleBo> selRoleListBySysId(AuthRoleBo authRoleBo);

    int countByRoleCode(String roleCode);

    List<String> selFuncListByRoleCode(String roleCode);
}
